package com.hspedu.homework.homework05;

public class Scientist extends Employee{
    private double annualBonus;

    public Scientist(double basicSalary, double annualBonus) {
        super(basicSalary);
        this.annualBonus = annualBonus;
    }

    public Scientist() {
    }

    @Override
    public void annualSalary() {
        System.out.println("科学家的年薪为：" + (getBasicSalary()*12+annualBonus));
    }
}
